<div class="header">
    <a href="<?php echo $this->baseUrl($this->lang . '/') ?>" class="logo"><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/logo.png"></a>

    <p class="slogan">Modern Travel Agency</p>

    <div class="right-header">
        <ul class="header-sidebar">
            <li><a href="<?php echo $this->baseUrl($this->lang . '/') ?>">trang chủ</a></li>&nbsp;/
            <li><a href="<?php echo $this->baseUrl($this->lang . '/page/index?page=1') ?>">giới thiệu</a></li>&nbsp;/
            <li><a href="<?php echo $this->baseUrl($this->lang . '/page/contact') ?>">liên hệ</a></li>
        </ul>

        <p class="hot-line">Hotline: 0936658166 | 0985655563 | 0983195256 | 01863753275</p>

        <div class="search">
            <form id="search-form" action="<?php echo $this->baseUrl($this->lang . '/index/search') ?>" method="get">
                <input type="text" id="keyword" name="keyword" placeholder="Tìm kiếm tour du lịch">
                <a id="search-btn" href=""><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/search-btn.jpg"></a>
            </form>
        </div>

        <?php
            $strUrl = explode('/', $this->userAgent()->getServerValue('request_uri'));
            $strUrl[2] = 'vi';
            $str1 = implode('/', $strUrl);
            $strUrl[2] = 'zh';
            $str2 = implode('/', $strUrl);
            $strUrl[2] = 'en';
            $str3 = implode('/', $strUrl);
            $strUrl[2] = 'trv';
            $str4 = implode('/', $strUrl);
        ?>
        <ul class="language" style="display: none">
            <li><a href="<?php echo $str1; ?>"><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/vn-flag.png"></a></li>
            <li><a href="<?php echo $str3; ?>"><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/uk-flag.png"></a></li>
            <li><a href="<?php echo $str2; ?>"><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/cn-flag.png"></a></li>
            <li><a href="<?php echo $str4; ?>"><img src="<?php echo $this->baseUrl('public/templates/default/images') ?>/tw-flag.png"></a></li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        $('#search-btn').click(function() {
            $('#search-form').submit();
            return false;
        });

        $('#search-form').submit(function() {
            if($.trim($('#keyword').val()) == '') {
                alert('Bạn chưa nhập từ tìm kiếm');
                return false;
            } else {
                return true;
            }
        });
    });
</script>